<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>19163-2 test</title>
    <script src="js/index.js"></script>
</head>
<body>
<h1>ISO 19163-2 Test</h1>
<ul>
    <li>You can enter a url that returns an XML document to test whether it conforms to ISO 19163-2.</li>
    <li>The returned content can only contain XML documents, and XML cannot be included in a web page.</li>
</ul>
<p><a th:href="@{/test/create}">Create a new test</a></p>
<div>
    <table border="1">
        <tr>
            <th>Id</th>
            <th>Data type</th>
            <th>Test name</th>
            <th>Time</th>
        </tr>

        <tr th:each="record:${records}">
            <td >
                <a th:text="${record.id}" th:href="@{'/test/result/'+${record.id}+'/html/index.html'}"></a>
            </td>
            <td th:text="${record.dataType}"></td>
            <td th:text="${record.testName}"></td>
            <td th:text="${record.time}"></td>
            <td><img th:data-rid="${record.id}" onclick="delRecord(this.getAttribute('data-rid'))" src="img/del3.png" width="20"/></td>
        </tr>
    </table>
</div>
</body>
</html>